<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'form/fields/text/form_field_text_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/select/form_field_select_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/checkbox/form_field_checkbox_view.class.php');


class Sitemap_Entry_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_path = $form->get_field('path');
		$f_path_view = new Form_Field_Text_View($form->get_name().'_'.$f_path->get_name(), $f_path);
		$this->add_field_view('path', $f_path_view);

		$f_weight = $form->get_field('weight');
		$f_weight_view = new Form_Field_Select_View($form->get_name().'_'.$f_weight->get_name(), $f_weight);
		$this->add_field_view('weight', $f_weight_view);

		$f_change_freq = $form->get_field('change_freq');
		$f_change_freq_view = new Form_Field_Select_View($form->get_name().'_'.$f_change_freq->get_name(), $f_change_freq);
		$this->add_field_view('change_freq', $f_change_freq_view);

 		$f_ignore = $form->get_field('ignore');
		$f_ignore_view = new Form_Field_Checkbox_View($form->get_name().'_'.$f_ignore->get_name(), $f_ignore);
		$this->add_field_view('ignore', $f_ignore_view);
	}
}